import java.util.Stack;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 05 - 28
 * Time: 9:02
 */
public class Test {
    public static void main(String[] args) {
        MyCircularQueue myCircularQueue = new MyCircularQueue(2);
        myCircularQueue.enQueue(1);
        myCircularQueue.enQueue(2);
        //myCircularQueue.enQueue(3);
        //myCircularQueue.enQueue(4);
        System.out.println(myCircularQueue.Rear());
        System.out.println(myCircularQueue.isFull());
        System.out.println(myCircularQueue.deQueue());
        myCircularQueue.enQueue(4);
        System.out.println(myCircularQueue.Rear());

    }
}
